home *** CD-ROM | disk | FTP | other *** search
- Path: inforamp.net!ts13-11
- From: rmorin@inforamp.net (Randy Charles Morin)
- Newsgroups: comp.lang.c++
- Subject: Re: Calling a HLP file from a program
- Date: Wed, 20 Mar 96 05:07:18 GMT
- Organization: MiddleWorld SoftWare
- Message-ID: <4io3qu$n9v@sam.inforamp.net>
- References: <4ig1c5$4pb@news2.nkn.net>
- NNTP-Posting-Host: ts34-09.tor.inforamp.net
- X-Newsreader: News Xpress Version 1.0 Beta #4
-
- In article <4ig1c5$4pb@news2.nkn.net>,
- wiersch@fastlane.net (Albert Wiersch) wrote:
- >I have written a help file and need to link it to the Help option in the pull
- >down menus and in the dialog boxes. How can I call certain
- >sections of my helpfile from within my program?
-
- I haven't written any help for Windows 95 yet, but the way we did it in
- Windows 3.1, was we made a context header file...
- context.h
- ---------
- #define FILE_NEW 1
- #define FILE_OPEN 2
- #define FILE_CLOSE 3
- etc.
- then you included this file in the map section of your help project...
- help.hpj
- --------
- [MAP]
- #include <context.h>
- then you used the pre-processor defines as the topic identifier (aka context
- strings) and finally you called...
- #include <context.h>
- WinHelp (hWnd, cszHelpFilename, HELP_CONTEXT, contextid);
-
- I hope this helps
-
- Agrivar
-